#include "splotdialog.h"
#include "ui_splotdialog.h"

SplotDialog::SplotDialog(QDialog *parent, MainApp *_app) : QDialog(parent), ui(new Ui::SplotDialog)
{
    ui->setupUi(this);
    m_MainApp = _app;
}

SplotDialog::~SplotDialog()
{
    delete ui;
}

void SplotDialog::on_pushButton_clicked()
{
    hide();

    if (ui->radioButton->isChecked())
        m_MainApp->SetSplotMask(0);
    else if (ui->radioButton_2->isChecked())
        m_MainApp->SetSplotMask(1);
    else
        m_MainApp->SetSplotMask(2);
}
